//
//  EventLocationAnnotationView.m
//  SecretRoom
//
//  Created by Sitdhibhong Laokok on 9/4/54 BE.
//  Copyright 2554 sitdhibong@gmail.com. All rights reserved.
//

#import "EventLocationAnnotation.h"

@implementation EventLocationAnnotation

@synthesize name;
@synthesize detail;
@synthesize coordinate;

+ (EventLocationAnnotation *)eventLocationAnnotationWithCoordinate:(CLLocationCoordinate2D)c name:(NSString *)n detail:(NSString *)d
{
    return [[[EventLocationAnnotation alloc] initWithCoordinate:c name:n detail:d] autorelease];
}

- (id)initWithCoordinate:(CLLocationCoordinate2D)c name:(NSString *)n detail:(id)d
{
    if (self = [super init]) {
        self.coordinate = c;
        self.name = n;
        self.detail = d;
    }
    
    return self;
}

- (NSString *)title 
{
    return self.name;
}

- (NSString *)subtitle
{
    return self.detail;
}


@end
